-- GENERATED SPELL FOR [Sunfury Summoner] --


function spell0_21505(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(13901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21505', 2500, 1)
end

function spell1_21505(pUnit, Event) --@Blink,Self--
pUnit:FullCastSpellOnTarget(36994,pUnit)
pUnit:RegisterEvent('Sorts_21505', 1287, 1)
end

function Sorts_21505(pUnit, Event)
local choix_sorts_21505 = math.random(0, 1)
if choix_sorts_21505 == 0 then
pUnit:RegisterEvent('spell0_21505', 1, 1)
end
if choix_sorts_21505 == 1 then
pUnit:RegisterEvent('spell1_21505', 1, 1)
end
end

function mob21505_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21505', math.random(1500, 3000), 1)
end

function mob21505_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21505_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21505_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21505, 1, 'mob21505_Action')
RegisterUnitEvent(21505, 2, 'mob21505_Leave')
RegisterUnitEvent(21505, 3, 'mob21505_Kill')
RegisterUnitEvent(21505, 4, 'mob21505_Die')
